home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / The World of Computer Software.iso / wn31xl24.zip / INSTALL.BAT next >
DOS Batch File  |  1992-08-21  |  5KB  |  108 lines

  1. echo off
  2. cls
  3. if ()==(%1) goto NO_ARG
  4. if not exist %1\SYSTEM\SETUP.INF goto BADDIR
  5. goto DO_IT
  6. :NO_ARG
  7. cls
  8. echo                   ┌─────────────────────────────────────────┐
  9. echo                   │** VGA Wonder XL24 Windows 3.1 Drivers **│
  10. echo                   └─────────────────────────────────────────┘
  11. echo  
  12. echo                This  batch file needs to know where your Windows
  13. echo                directory is located in order to properly install
  14. echo                the drivers.
  15. echo  
  16. echo                    ┌┬────────────────────────────────────┬┐
  17. echo                    ││ Usage: INSTALL [Windows Directory] ││
  18. echo                    └┴────────────────────────────────────┴┘
  19. echo                          Example: INSTALL C:\WINDOWS
  20. goto DONE
  21. :BADDIR
  22. cls
  23. echo                   ┌─────────────────────────────────────────┐
  24. echo                   │** VGA Wonder XL24 Windows 3.1 Drivers **│
  25. echo                   └─────────────────────────────────────────┘
  26. echo  
  27. echo                      ERROR: INVALID PATH "%1"
  28. echo  
  29. echo               The path you specified in either incorrect or does
  30. echo               not exist.  Please  check the path to your Windows
  31. echo               directory and try again.  If  you continue to have
  32. echo               difficulty,  please  call ATI Customer Support for
  33. echo               assistance.
  34. echo  
  35. echo                    ┌┬────────────────────────────────────┬┐
  36. echo                    ││ Usage: INSTALL [Windows Directory] ││
  37. echo                    └┴────────────────────────────────────┴┘
  38. echo                          Example: INSTALL C:\WINDOWS
  39. goto DONE
  40. :DO_IT
  41. cls
  42. echo                   ┌─────────────────────────────────────────┐
  43. echo                   │** VGA Wonder XL24 Windows 3.1 Drivers **│
  44. echo                   └─────────────────────────────────────────┘
  45. echo  
  46. echo                    This batch file will conveniently extract
  47. echo                    the VGA Wonder XL24  Windows 3.1  drivers
  48. echo                    to your Windows system directory.
  49. echo                   ┌─────────────────────────────────────────┐
  50. echo                   │ If you are prompted to overwrite a file │
  51. echo                   │             press Y  for YES            │
  52. echo                   └─────────────────────────────────────────┘
  53. echo  
  54. echo                   Press any key to continue the installation
  55. echo                             or CONTROL-C to abort.
  56. echo 
  57. pause >nul
  58. cls
  59. echo                   ┌─────────────────────────────────────────┐
  60. echo                   │** VGA Wonder XL24 Windows 3.1 Drivers **│
  61. echo                   └─────────────────────────────────────────┘
  62. echo  
  63. echo Decompressing . . .
  64. w31xl24 /e%1\SYSTEM
  65. if errorlevel == 0 goto OK
  66. goto ERROR
  67. :OK
  68. echo 
  69. pause
  70. cls
  71. echo                    ┌─────────────────────────────────────────┐
  72. echo                    │** VGA Wonder XL24 Windows 3.1 Drivers **│
  73. echo                    └─────────────────────────────────────────┘
  74. echo                              ────────────────────
  75. echo                          ╒══════════════════════════╕
  76. echo                          │ Installation successful! │
  77. echo                          ╘══════════════════════════╛
  78. echo  
  79. echo           The first step of the Windows 3.1 drivers is now complete.
  80. echo           The next  step is to tell  Windows  to  use these drivers.
  81. echo           Please read  the README.TXT file for further instructions.
  82. echo           README.TXT is located in your %1\SYSTEM directory.
  83. goto DONE
  84. :ERROR
  85. cls
  86. echo                  ┌─────────────────────────────────────────┐
  87. echo                  │** VGA Wonder XL24 Windows 3.1 Drivers **│
  88. echo                  └─────────────────────────────────────────┘
  89. echo                            ────────────────────
  90. echo                           ╒═════════════════════╕
  91. echo                           │ Installation Failed │
  92. echo                           ╘═════════════════════╛
  93. echo     
  94. echo     An error has been reported decompressing the Windows drivers.  This may
  95. echo     be due  to problems  accessing the  specified directory,  low free disk
  96. echo     space, or the archive is corrupt.  First, ensure the path you specified
  97. echo     is correct.  Second, run the DOS CHKDSK utility on your hard drive.  If
  98. echo     CHKDSK reports errors, correct the errors before continuing. Also, make
  99. echo     certain you have at least 3 Meg of free disk space available.
  100. echo     
  101. echo     If you  continue to  have  problems,  you  may  wish  to  try  manually
  102. echo     installing the drivers or  contact ATI Customer Support.  Manual driver
  103. echo     installation instructions are in README.1ST.
  104. :DONE
  105. echo  
  106. echo               ATI Customer Support (416) 756-0711 9am-5:30pm
  107. echo 
  108.